package com.sylli.oeuf.server.game.logic.invocation;

public class DispatcherEntry implements Comparable<DispatcherEntry> {

	protected InvocationCondition condition;

	protected InvocationAction action;

	protected InvocationParameter params;

	public InvocationCondition getCondition() {
		return condition;
	}

	public void setCondition(InvocationCondition condition) {
		this.condition = condition;
	}

	public InvocationAction getAction() {
		return action;
	}

	public void setAction(InvocationAction action) {
		this.action = action;
	}

	public InvocationParameter getParams() {
		return params;
	}

	public void setParams(InvocationParameter params) {
		this.params = params;
	}

	@Override
	public int compareTo(DispatcherEntry o) {
		return params.getPriority() - o.params.getPriority();
	}

}
